package com.example.utils;

import java.io.Serializable;

import android.text.format.Time;

public class SearchResult implements Serializable {

	private static final long serialVersionUID = 0L;

	private String sBrand;
	private String sShop;	
	private int sDay;
	private String sUrl;

	@Override
	public boolean equals(Object o) {

		if (!(o instanceof SearchResult))
			return false;

		SearchResult res = (SearchResult) o;

		return this.getBrand().equalsIgnoreCase(res.getBrand())
				&& this.getShop().equalsIgnoreCase(res.getShop())
				&& sDay == res.getDay();
	}

	public SearchResult(String brand, String shop, int Day, String url) {
		super();
		this.sBrand = brand;
		this.sShop = shop;
		this.sDay = Day;
		this.sUrl = url;
	}

	public String toString() {
		return "[SearchResult: Brand=" + sBrand + " Shop=" + sShop + " Day="
				+ sDay + " Url=" + sUrl + "]";
	}

	public String getBrand() {
		return sBrand;
	}

	public String getShop() {
		return sShop;
	}

	public int getDay()
	{
		return sDay;
	}
	
	public String getUrl() {
		return sUrl;
	}

}
